import App from './App'
import chooseImg from "@/utils/chooseImg.js"
import store from '@/store';
import Vuex from "vuex";
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import uviewPlus from 'uview-plus'

// import globalComponents from './components/index'

// #ifdef H5
import "@/utils/h5.js";
// #endif

// import '@/utils/analysisProto.js'

export function createApp() {
	const app = createSSRApp(App)
	app.config.globalProperties.$chooseImg = chooseImg;
	app.use(uviewPlus)
	app.use(store)
	//全局组件
	// app.use(globalComponents)
	return {
		app
	}
}
// #endif